const { merge } = require('webpack-merge')
const webpack = require('webpack')
const common = require('./webpack.common.js')

module.exports = merge(common, {
  mode: 'development',
  stats: 'errors-only',
  devServer: {
    contentBase: './dist/',
    hot: true,
    port: 8080,
    writeToDisk: true
  },
  plugins: [
    new webpack.HotModuleReplacementPlugin()
  ],
  devtool: 'cheap-module-eval-source-map'
})
